import Home from "../views/MianView.vue";
export default [
  {
    path: "/",
    component: Home,
    redirect: "/goods",
    children: [
      {
        path: "goods",
        name: "Goods",
        redirect: "/goods/goodslist",
        component: () => import("../views/GoodsView.vue"),
        children: [
          {
            path: "goodslist",
            name: "GoodsList",
            component: () => import("../views/GoodsListView.vue"),
          },
          {
            path: "goodscollect",
            name: "GoodsCollect",
            component: () => import("../views/GoodsCollectView.vue"),
          },
        ],
      },
      {
        path: "cart",
        name: "Cart",
        component: () => import("@/views/CartView.vue"),
      },
    ],
  },
  {
    path: "/search",
    name: "Search",
    component: () => import("@/views/SearchView.vue"),
  },
  {
    path: "/goodspron",
    name: "GoodsPron",
    component: () => import("@/views/GoodsPronView.vue"),
  },
];
